package com.hewep.demo.service.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author YM20051
 * @description: TODO
 * @date 2018/2/12 11:03
 */
@FeignClient(value = "demo-service", fallback = HelloServiceHystric.class)
public interface HelloService {

    @RequestMapping(value = "/user",method = RequestMethod.GET)
    String sayHiFromClientOne(@RequestParam(value = "name") String name);
}
